const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 获取token
  token: state => state.user.token,
  // 存储用户名
  username: state => state.user.user.username,
  // 存储用户id
  userId: state => state.user.user.userId,
  // 存储用户头像
  staffPhoto: state => state.user.user.staffPhoto,
  // 存储公司ID
  companyId: state => state.user.user.companyId
}
export default getters
